package com.inno.auth.api;

import com.inno.auth.entity.AuthUserDTO;
import com.inno.auth.entity.CommonReturnType;
import com.inno.auth.entity.MemberDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author sean
 */
@FeignClient("zey-inno-auth")
public interface UserFeignService {
    @PostMapping("/auth/user/getUserInfo")
    CommonReturnType<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDTO);

    @PostMapping("/auth/user/getUserInfoByIdList")
    CommonReturnType<List<AuthUserDTO>> getUserInfoByIdList(@RequestBody List<Long> idList);

    @PostMapping("/auth/user/checkLogin")
    CommonReturnType<Boolean> checkLogin(@RequestBody AuthUserDTO authUserDTO);

    @PostMapping("/auth/member/gifts")
    CommonReturnType<Void> gifts(@RequestBody MemberDTO memberDTO);
}
